package com.zhouzj.task.springcloud.email.service;

import cn.hutool.extra.mail.MailUtil;
import com.zhouzj.task.springcloud.email.api.EmailService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Author: zhouzhijun
 * @Date: 2021/9/2 16:44
 */
@Service
public class EmainServiceImpl implements EmailService {
    @Override
    public Boolean send(String email, String code) {
        MailUtil.send(email, "验证码", "验证码：" + code, false);
        return Boolean.TRUE;
    }
}
